import pytest

from page.login_page import LoginPage

project_name = 'Demo'
identifier = 'demo'
# 过期时间
past_time1 = "2020-02-25"
past_time2 = "2021-07-04"


@pytest.fixture(scope='module')
def log_on():
    login = LoginPage().get_cookie()
    yield login
    login.quit()


@pytest.fixture()
def order_entry(log_on):
    entry = log_on.goto_order_entry()
    yield entry
    # entry.goto_order_form_page().cancel_order().to_cancel_order_list().search_num().delete_order()


@pytest.fixture()
def order_list(log_on):
    l = log_on.goto_order_form_page()
    yield l






